package com.smart.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.common.annotation.Excel;
import com.smart.common.core.domain.BaseEntity;

/**
 * 药品变动明细对象 tb_drug_movements
 * 
 * @author lingyao
 * @date 2025-03-07
 */
public class DrugMovements extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 变动记录ID */
    @Excel(name = "变动记录ID")
    private Long movementId;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long drugId;

    /** 变动类型 */
    @Excel(name = "变动类型")
    private Long movementType;

    /** 变动数量 */
    @Excel(name = "变动数量")
    private Long quantity;

    /** 操作员ID */
    @Excel(name = "操作员ID")
    private Long operatorId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 变动日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变动日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date movementDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setMovementId(Long movementId) 
    {
        this.movementId = movementId;
    }

    public Long getMovementId() 
    {
        return movementId;
    }
    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setMovementType(Long movementType) 
    {
        this.movementType = movementType;
    }

    public Long getMovementType() 
    {
        return movementType;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMovementDate(Date movementDate) 
    {
        this.movementDate = movementDate;
    }

    public Date getMovementDate() 
    {
        return movementDate;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("movementId", getMovementId())
            .append("drugId", getDrugId())
            .append("movementType", getMovementType())
            .append("quantity", getQuantity())
            .append("operatorId", getOperatorId())
            .append("userId", getUserId())
            .append("movementDate", getMovementDate())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
